from agentbay import AgentBay

# Initialize with API key
agent_bay = AgentBay(api_key="akm-389bb440-8c53-4511-82d5-9c535f37047f")

# Create a session
session_result = agent_bay.create()
session = session_result.session

# Execute a simple echo command
result = session.command.execute_command("echo 'Hello, AgentBay!'")
if result.success:
    print(f"Command output: {result.output}")

# Don't forget to delete the session when done
# delete_result = agent_bay.delete(session)
